package design.proxy;

public class AbstractServiceProxy implements IService {
    protected Service service;
    @SuppressWarnings("unused")
    private AbstractServiceProxy() {}
    protected AbstractServiceProxy(Service service) {
        this.service = service;
    }
    @Override
    public void say() {
        service.say();
    }
    @Override
    public void go() {
        service.go();
    }
}
